#FROM hub.cdqidi.cn/jre:11-alpine
#FROM registry.cn-hangzhou.aliyuncs.com/sjk009/jre:11-ttf-alpine
FROM registry.cn-hangzhou.aliyuncs.com/sjk009/jre:21-alpine

#更新镜像作者信息
#LABEL MAINTAINER="flash520@163.com"

# 更新镜像作者信息
COPY ./target/gy-panda-park-admin-1.0.0-SNAPSHOT.jar /data/gy-panda-park/
WORKDIR /data/gy-panda-park/logs
WORKDIR /data/gy-panda-park/disk
WORKDIR /data/gy-panda-park
EXPOSE 8084
# 增加字体
#RUN apk --update add curl bash ttf-dejavu && \
#      rm -rf /var/cache/apk/*
ENTRYPOINT ["java", "-XX:MetaspaceSize=256M","-XX:MaxMetaspaceSize=256M","-XX:+AlwaysPreTouch","-XX:ReservedCodeCacheSize=128m","-XX:InitialCodeCacheSize=128m","-Xss512k","-Xms4g","-Xmx4g","-XX:+UseZGC","-Duser.timezone=Asia/Shanghai","-jar","gy-panda-park-admin-1.0.0-SNAPSHOT.jar"]